import { AppRouteModule } from '/@/router/types';
import { LAYOUT } from '/@/router/constant';

const object: AppRouteModule = {
  path: '/object',
  name: '服务器',
  component: LAYOUT,
  redirect: '/object/list',
  meta: {
    icon: 'mdi:server',
    title: '监控中心',
    orderNo: 100,
  },
  children: [
    {
      path: 'list',
      name: '机器列表',
      meta: {
        title: '服务器列表',
      },
      component: () => import('/@/views/object/list/Table.vue'),
    },
    {
      path: ':id',
      name: '服务器详情',
      meta: {
        hideMenu: true,
        showMenu: false,
        title: '服务器详情',
        currentActiveMenu: '/object/list',
      },
      component: () => import('/@/views/object/detail/index.vue'),
    },
  ],
};

export default object;
